import { _decorator, Component, Label } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('HudView')
export class HudView extends Component {
    @property(Label)
    score: Label = null;

    @property(Label)
    lives: Label = null;

    public setScore(value: number): void {
        this.score.string = `SCORE: ${value}`;
    }

    public setLives(value: number): void {
        this.lives.string = `LIVES: ${value}`;
    }
}
